home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-10-27 | 1.5 KB | 68 lines |
- #
- # icsample makefile
- #
- # ICSAMPLE is a sample installable compressor for Video for Windows.
- #
- # Copyright (c) 1991, 1992 Microsoft Corporation. All Rights Reserved.
- #
- # You have a royalty-free right to use, modify, reproduce and
- # distribute the Sample Files (and/or any modified version) in
- # any way you find useful, provided that you agree that
- # Microsoft has no warranty obligations or liability for any
- # Sample Application Files.
- #
-
- NAME = icsample
- EXT = drv
- OBJ = drvproc.obj icsample.obj
- DEFFILE = $(NAME).DEF
-
- !if "$(DEBUG)" == "NO"
- DEF =
- RC = rc
- CC = cl -c -nologo -Asnw -G2s -Zp -W3 -Oxwt $(DEF)
- ASM = masm -Mx -t $(DEF)
- LINK = link /NOD/NOE/MAP/NOPACKC/AL:16
- LIBS = mdllcew libw mmsystem
- !else
- DEF = -DDEBUG
- CC = cl -c -nologo -Asnw -G2s -Zip -W3 -Oxwt $(DEF)
- RC = rc
- ASM = masm -Mx -Zi -t
- LINK = link /CO/NOD/NOE/LI/NOPACKC/MAP/AL:16
- LIBS = mdllcew libw mmsystem
- !endif
-
- .c.obj:
- $(CC) $*.c
-
- .asm.obj:
- $(ASM) $*;
-
- .rc.res:
- $(RC) $(DEF) -r $*.rc
-
- goal: $(NAME).$(EXT)
- @echo ***** finished making $(NAME) *****
-
- $(NAME).$(EXT): $(OBJ) $(DEFFILE) $(NAME).res $(NAME).def libinit.obj
- $(LINK) @<<
- libinit.obj +
- $(OBJ),
- $(NAME).$(EXT),
- $(NAME).map,
- $(LIBS),
- $(DEFFILE)
- <<
- -cvpack -p $(NAME).$(EXT)
- $(RC) -t $(NAME).res $(NAME).$(EXT)
- @mapsym /n $*.map
-
- clean:
- -del $(NAME).$(EXT)
- -del $(NAME).res
- -del *.obj
- -del *.map
- -del *.sym
- -del *.cod
-